package com.cuoyi.coupon.mall.model.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author zhang.cheng
 * 2022-02-15 17:06
 **/
@Data
public class UserReq {

    @NotBlank(message = "用户名不能为空")
    @ApiModelProperty("用户名")
    private String name;

    @ApiModelProperty("年龄")
    private int age;
}
